//频道相关
import request from "@/utils/request";

//获取所有频道列表
export const getAllChannel=()=>{
    return request({
        method:'get',
        url:'/v1_0/channels',
    })
}

//登录了 用户频道 
export const addUserChannel=data=>{
    return request({
        method:'patch',
        url:'/v1_0/user/channels',
        data
    })
}

//登录了 删除指定用户频道
export const delectUserChannel=channelId=>{
    return request({
        method:'DELETE',
        url:`/v1_0/user/channels/${channelId}`,
    })
}